package cn.stylefeng.guns.modular.app.dto.e;

import lombok.Data;

import javax.validation.constraints.*;
import java.math.BigDecimal;

@Data
public class ApiTransferDto
{

    /**
     * 转账账号
     */
    @NotBlank(message = "转账账号不能为空")
    @Email(message = "邮箱格式错误")
    private String account;
    /**
     * 数量
     */
    @NotNull(message = "转账数量不能为空")
    @DecimalMin(value = "0.1",message = "最小转账为0.1")

    private BigDecimal price;

    @NotBlank(message = "资金密码不能为空")
    private String payPwd;

    @NotBlank(message = "转账类型不能为空")
//    @Pattern(regexp = "^(USDT|CNY)$",message = "格式有误")
    private String type;
}
